<?php !defined('DYHB_PATH') && exit; /* DoYouHaoBaby Framework 模板缓存文件 生成时间：2011-06-07 11:42:04  */


/**

 * DoYouHaoBaby Framework ( Gtk窗体-创建器 )模板编译文件

 *

 * < Do Not To Modify This File , Or This File Will Be Promptly Rebuilt! >

 *

 * @create 2011-06-07 11:42:05

 * @access public

 */

class GtkGlade_b4d0a493fcdb8332f6068a96ac8c17bf extends TemplateGtkWidgetCreator{



	/** ================================== Public Functions ===================================== */



	/**

	 * 构造函数

	 */

	public function __construct( TemplateGtkGlade $oTemplate ){



		parent::__construct( $oTemplate ) ;


		$this->_arrWidgetTree = unserialize('a:1:{s:33:"GtkDialog:MessageGtkDialogPrinter";a:3:{s:33:"GtkScrolledWindow:scrolledwindow1";a:1:{s:13:"GtkVBox:vbox1";a:1:{s:20:"GtkVBox:VBoxMsgQueue";a:0:{}}}s:31:"GtkCheckButton:ChkClearMsgQueue";a:0:{}s:17:"GtkButton:button1";a:0:{}}}') ;


		$this->_arrWidgetIds =  unserialize('a:6:{s:23:"MessageGtkDialogPrinter";s:9:"GtkDialog";s:15:"scrolledwindow1";s:17:"GtkScrolledWindow";s:5:"vbox1";s:7:"GtkVBox";s:12:"VBoxMsgQueue";s:7:"GtkVBox";s:16:"ChkClearMsgQueue";s:14:"GtkCheckButton";s:7:"button1";s:9:"GtkButton";}') ;


		$this->_sTemplatePath = ''.DYHB_PATH.'/Resource/Template/MessageGtkDialogPrinter.template.glade' ;

	}





	/** ================================== Private Functions ===================================== */







    /**

     * 创建窗体 GtkDialog:MessageGtkDialogPrinter

     */

     protected function create_MessageGtkDialogPrinter(array $arrObjectForSignal=array()){


	     A::ISTHESE( $arrObjectForSignal, array('array:object,null'),G::L( '$arrObjectForSignal必须为对象或者null','dyhb' ) ) ;


	    // 声明 用于响应 Signal 事件的对象的引用

	    foreach( $arrObjectForSignal as $sObName=>$oObject ){


	        if( $oObject )	
		        $$sObName = $oObject ;
	    }
        

		$MessageGtkDialogPrinter = new GtkDialog() ;

		$MessageGtkDialogPrinter->set_title('DoYouHaoBaby Gtk 消息输出窗口') ;
		$MessageGtkDialogPrinter->set_modal(true) ;
		$MessageGtkDialogPrinter->set_position(Gtk::WIN_POS_CENTER_ON_PARENT) ;
		$MessageGtkDialogPrinter->set_type_hint(Gdk::WINDOW_TYPE_HINT_DIALOG) ;

		$scrolledwindow1 = $this->getWidget('scrolledwindow1',$arrObjectForSignal) ;
		$MessageGtkDialogPrinter->vbox->add($scrolledwindow1) ;


		$ChkClearMsgQueue = $this->getWidget('ChkClearMsgQueue',$arrObjectForSignal) ;
		$MessageGtkDialogPrinter->add_action_widget($ChkClearMsgQueue,0) ;


		$button1 = $this->getWidget('button1',$arrObjectForSignal) ;
		$MessageGtkDialogPrinter->add_action_widget($button1,-5) ;

		$MessageGtkDialogPrinter->set_has_separator(false) ;
		$MessageGtkDialogPrinter->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;
		$MessageGtkDialogPrinter->set_size_request( 400, 260 ) ;


        // 窗体名称

        if( isset($MessageGtkDialogPrinter) and $MessageGtkDialogPrinter->get_name()=='GtkDialog' ){

		
		    $MessageGtkDialogPrinter->set_name('MessageGtkDialogPrinter') ;
	    }
	
	    // 在 窗体中 记录 Creator

	    if( isset($MessageGtkDialogPrinter) and !$MessageGtkDialogPrinter->get_data('creator') ){

		
		    $MessageGtkDialogPrinter->set_data('creator',$this) ;
	    }

			
        return $MessageGtkDialogPrinter ;

    }






    /**

     * 创建窗体 GtkScrolledWindow:scrolledwindow1

     */

     protected function create_scrolledwindow1(array $arrObjectForSignal=array()){


	     A::ISTHESE( $arrObjectForSignal, array('array:object,null'),G::L( '$arrObjectForSignal必须为对象或者null','dyhb' ) ) ;


	    // 声明 用于响应 Signal 事件的对象的引用

	    foreach( $arrObjectForSignal as $sObName=>$oObject ){


	        if( $oObject )	
		        $$sObName = $oObject ;
	    }
        

		$scrolledwindow1 = new GtkScrolledWindow() ;
		$scrolledwindow1->set_policy(Gtk::POLICY_AUTOMATIC,Gtk::POLICY_AUTOMATIC) ;

		$vbox1 = $this->getWidget('vbox1',$arrObjectForSignal) ;
		$scrolledwindow1->add_with_viewport($vbox1) ;
		$scrolledwindow1->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;
		$scrolledwindow1->set_visible( true, false ) ;


        // 窗体名称

        if( isset($scrolledwindow1) and $scrolledwindow1->get_name()=='GtkScrolledWindow' ){

		
		    $scrolledwindow1->set_name('scrolledwindow1') ;
	    }
	
	    // 在 窗体中 记录 Creator

	    if( isset($scrolledwindow1) and !$scrolledwindow1->get_data('creator') ){

		
		    $scrolledwindow1->set_data('creator',$this) ;
	    }

			
        return $scrolledwindow1 ;

    }






    /**

     * 创建窗体 GtkVBox:vbox1

     */

     protected function create_vbox1(array $arrObjectForSignal=array()){


	     A::ISTHESE( $arrObjectForSignal, array('array:object,null'),G::L( '$arrObjectForSignal必须为对象或者null','dyhb' ) ) ;


	    // 声明 用于响应 Signal 事件的对象的引用

	    foreach( $arrObjectForSignal as $sObName=>$oObject ){


	        if( $oObject )	
		        $$sObName = $oObject ;
	    }
        

		$vbox1 = new GtkVBox() ;

		$vbox1->set_homogeneous(false) ;

		$vbox1->set_spacing(0) ;

		$VBoxMsgQueue = $this->getWidget('VBoxMsgQueue',$arrObjectForSignal) ;
		$vbox1->pack_start( $VBoxMsgQueue, false, true, 0 ) ;

		$vbox1->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;
		$vbox1->set_visible( true, false ) ;


        // 窗体名称

        if( isset($vbox1) and $vbox1->get_name()=='GtkVBox' ){

		
		    $vbox1->set_name('vbox1') ;
	    }
	
	    // 在 窗体中 记录 Creator

	    if( isset($vbox1) and !$vbox1->get_data('creator') ){

		
		    $vbox1->set_data('creator',$this) ;
	    }

			
        return $vbox1 ;

    }






    /**

     * 创建窗体 GtkVBox:VBoxMsgQueue

     */

     protected function create_VBoxMsgQueue(array $arrObjectForSignal=array()){


	     A::ISTHESE( $arrObjectForSignal, array('array:object,null'),G::L( '$arrObjectForSignal必须为对象或者null','dyhb' ) ) ;


	    // 声明 用于响应 Signal 事件的对象的引用

	    foreach( $arrObjectForSignal as $sObName=>$oObject ){


	        if( $oObject )	
		        $$sObName = $oObject ;
	    }
        

		$VBoxMsgQueue = new GtkVBox() ;

		$VBoxMsgQueue->set_homogeneous(false) ;

		$VBoxMsgQueue->set_spacing(0) ;
		$VBoxMsgQueue->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;
		$VBoxMsgQueue->set_visible( true, false ) ;


        // 窗体名称

        if( isset($VBoxMsgQueue) and $VBoxMsgQueue->get_name()=='GtkVBox' ){

		
		    $VBoxMsgQueue->set_name('VBoxMsgQueue') ;
	    }
	
	    // 在 窗体中 记录 Creator

	    if( isset($VBoxMsgQueue) and !$VBoxMsgQueue->get_data('creator') ){

		
		    $VBoxMsgQueue->set_data('creator',$this) ;
	    }

			
        return $VBoxMsgQueue ;

    }






    /**

     * 创建窗体 GtkCheckButton:ChkClearMsgQueue

     */

     protected function create_ChkClearMsgQueue(array $arrObjectForSignal=array()){


	     A::ISTHESE( $arrObjectForSignal, array('array:object,null'),G::L( '$arrObjectForSignal必须为对象或者null','dyhb' ) ) ;


	    // 声明 用于响应 Signal 事件的对象的引用

	    foreach( $arrObjectForSignal as $sObName=>$oObject ){


	        if( $oObject )	
		        $$sObName = $oObject ;
	    }
        

		$ChkClearMsgQueue = new GtkCheckButton() ;
		$ChkClearMsgQueue->set_label('清空消息队列') ;

		$ChkClearMsgQueue->set_active(true) ;
		$ChkClearMsgQueue->set_mode(true) ;
		$ChkClearMsgQueue->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;
		$ChkClearMsgQueue->set_visible( true, false ) ;


        // 窗体名称

        if( isset($ChkClearMsgQueue) and $ChkClearMsgQueue->get_name()=='GtkCheckButton' ){

		
		    $ChkClearMsgQueue->set_name('ChkClearMsgQueue') ;
	    }
	
	    // 在 窗体中 记录 Creator

	    if( isset($ChkClearMsgQueue) and !$ChkClearMsgQueue->get_data('creator') ){

		
		    $ChkClearMsgQueue->set_data('creator',$this) ;
	    }

			
        return $ChkClearMsgQueue ;

    }






    /**

     * 创建窗体 GtkButton:button1

     */

     protected function create_button1(array $arrObjectForSignal=array()){


	     A::ISTHESE( $arrObjectForSignal, array('array:object,null'),G::L( '$arrObjectForSignal必须为对象或者null','dyhb' ) ) ;


	    // 声明 用于响应 Signal 事件的对象的引用

	    foreach( $arrObjectForSignal as $sObName=>$oObject ){


	        if( $oObject )	
		        $$sObName = $oObject ;
	    }
        

		$button1 = new GtkButton() ;
		$button1->set_label('确定') ;
		$button1->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;
		$button1->set_visible( true, false ) ;
		$button1->connect( 'clicked', 'click_button'  ) ;


        // 窗体名称

        if( isset($button1) and $button1->get_name()=='GtkButton' ){

		
		    $button1->set_name('button1') ;
	    }
	
	    // 在 窗体中 记录 Creator

	    if( isset($button1) and !$button1->get_data('creator') ){

		
		    $button1->set_data('creator',$this) ;
	    }

			
        return $button1 ;

    }





}

